package com.thl.service;

import com.thl.annotation.ServiceProcessor;
import com.thl.common.enums.BusinessScene;
import com.thl.common.enums.ServiceDescription;
import com.thl.dto.ServiceContext;
import com.thl.process.BaseProcessor;
import org.springframework.stereotype.Service;

/**
 * @author 1900614@qq.com
 * @version 1.0
 * @date 2021/6/19 18:41
 */
@Service
@ServiceProcessor(businessScene=BusinessScene.COMPANT_A,serviceDescription= ServiceDescription.SELL)
@ServiceProcessor(businessScene=BusinessScene.COMPANT_B,serviceDescription= ServiceDescription.SELL)
public class SellService implements BaseProcessor {
    @Override
    public void execute(ServiceContext serviceContext) {

        System.out.println("售卖 :"+serviceContext);
    }
}
